﻿using Dapper_Core.Model;
using System;
using System.Collections.Generic;
using System.Text;

namespace Dapper_Core.Common
{
    public class SessionKey
    {
        public static string GetMainKey()
        {
            //return MyHttpContext.Current.Session.Id + SessionPostfix.Main;
            return IPUtility.GetVisitorRealIP() + SessionPostfix.Main;
        }

        public static string GetAllMenusCodeKey()
        {
            //return MyHttpContext.Current.Session.Id + SessionPostfix.Main;
            return IPUtility.GetVisitorRealIP() + SessionPostfix.AllMenusCode;
        }

        public static string GetAllMenuPageUrlsKey()
        {
            //return MyHttpContext.Current.Session.Id + SessionPostfix.Main;
            return IPUtility.GetVisitorRealIP() + SessionPostfix.AllMenuPageUrls;
        }
    }
}
